// 自动生成模板OmsRefundInfo
package biz

import "github.com/go-kratos/kratos/v2/log"

// omsRefundInfo表 结构体  OmsRefundInfo
type OmsRefundInfo struct {
	Id            *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                        //id
	OrderReturnId *int     `json:"orderReturnId" form:"orderReturnId" gorm:"comment:退款的订单;column:order_return_id;size:19;"`             //退款的订单
	Refund        *float64 `json:"refund" form:"refund" gorm:"comment:退款金额;column:refund;size:18;"`                                     //退款金额
	RefundSn      *string  `json:"refundSn" form:"refundSn" gorm:"comment:退款交易流水号;column:refund_sn;size:64;"`                           //退款交易流水号
	RefundStatus  *bool    `json:"refundStatus" form:"refundStatus" gorm:"comment:退款状态;column:refund_status;"`                          //退款状态
	RefundChannel *bool    `json:"refundChannel" form:"refundChannel" gorm:"comment:退款渠道[1-支付宝，2-微信，3-银联，4-汇款];column:refund_channel;"` //退款渠道[1-支付宝，2-微信，3-银联，4-汇款]
	RefundContent *string  `json:"refundContent" form:"refundContent" gorm:"column:refund_content;size:5000;"`                          //refundContent字段
}

// TableName omsRefundInfo表 OmsRefundInfo自定义表名 oms_refund_info
func (OmsRefundInfo) TableName() string {
	return "oms_refund_info"
}

type OmsRefundInfoRepo interface {
}

type OmsRefundInfoUsecase struct {
	repo OmsRefundInfoRepo
	log  *log.Helper
}

func NewOmsRefundInfoUsecase(repo GreeterRepo, logger log.Logger) *OmsRefundInfoUsecase {
	return &OmsRefundInfoUsecase{repo: repo, log: log.NewHelper(logger)}
}
